<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header>
    <div class="wrapper">
        <RouterLink to="/">选项式组件1</RouterLink>
        <RouterLink to="/about">选项式组件2</RouterLink>
        <RouterLink to="/z1">组合式组件1</RouterLink>
        <RouterLink to="/z2">组合式组件2</RouterLink>
      <RouterLink to="/s1">选项式getters--s1</RouterLink>
      <RouterLink to="/s2">组合式getters--s2</RouterLink>
      <RouterLink to="/p1">选项式actions--p1</RouterLink>
      <RouterLink to="/p2">组合式actions--p2</RouterLink>
    </div>
  </header>

  <RouterView />
</template>
<style scoped>
.wrapper{
  display: flex;
  justify-content: center;
}
.wrapper a{
  margin:10px;
}
</style>
